home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / MPW / gzip 1.2.2 / msdos / Makefile.bor < prev    next >
Encoding:
Makefile  |  1993-06-22  |  2.8 KB  |  117 lines  |  [TEXT/MPS ]

  1. # Makefile for gzip
  2. # Borland (Turbo) C++.
  3. # Warning: this file is not suitable for Turbo C 2.0. In this case, read
  4. # then invoke the file doturboc.bat.
  5.  
  6. # To use, do "make -fmakefile.bor"
  7.  
  8. # WARNING: the small model is not supported. The compact model is used
  9. # here. If you want to use the large model, add -D__LARGE__ to ASFLAGS
  10. # Add -DSMALL_MEM to CFLAGS if you wish to reduce the memory
  11. # requirements. Add -DNO_ASM to CFLAGS and remove match.obj from OBJA if
  12. # you do not have tasm.
  13.  
  14. # ------------- Turbo C++, Borland C++ -------------
  15. MODEL=-mc
  16. #CFLAGS=-w -w-eff -w-def -w-sig -w-cln -a -d -G -O -Z $(MODEL)
  17. CFLAGS=-O2 -Z $(MODEL)
  18. CC=bcc
  19. LD=bcc
  20. #   replace bcc with tcc for Turbo C++ 1.0
  21. LDFLAGS=$(MODEL)
  22. AS=tasm
  23. ASFLAGS=-ml -t -DDYN_ALLOC -DSS_NEQ_DS
  24. LIB = c:\bcc\lib
  25.  
  26. # ------------- Common declarations:
  27. STRIP=rem
  28. #    If you don't have lzexe, get it (by ftp on wuarchive.wustl.edu
  29. #    in /mirrors/msdos/filutl/lzexe91e.zip). Then define:
  30. #STRIP=lzexe
  31. #    Or if you've registered PKLITE, then define:
  32. #STRIP=pklite
  33. #    This makes a big difference in .exe size (and possibly load time)
  34.  
  35. O=.obj
  36. OBJA=match$(O) tailor$(O) $(LIB)\wildargs.obj
  37. ALLOCA=alloca$(O)
  38.  
  39. # ------------- Used by install rule
  40. # set BIN to the directory you want to install the executables to
  41. BIN = c:\bin
  42.  
  43. # variables
  44. OBJ1 = gzip$(O) zip$(O) deflate$(O) trees$(O) bits$(O) unzip$(O) inflate$(O) \
  45.        util$(O)
  46. OBJ2 = crypt$(O) lzw$(O) unlzw$(O) unpack$(O) unlzh$(O) getopt$(O) $(OBJA) \
  47.        $(ALLOCA)
  48.  
  49. all: gzip.exe
  50.  
  51. gzip.obj: gzip.c gzip.h tailor.h crypt.h revision.h lzw.h
  52.     $(CC) -c $(CFLAGS) $*.c
  53.  
  54. zip.obj: zip.c gzip.h tailor.h crypt.h
  55.     $(CC) -c $(CFLAGS) $*.c
  56.  
  57. deflate.obj: deflate.c gzip.h tailor.h
  58.     $(CC) -c $(CFLAGS) $*.c
  59.  
  60. trees.obj: trees.c gzip.h tailor.h
  61.     $(CC) -c $(CFLAGS) $*.c
  62.  
  63. bits.obj: bits.c gzip.h tailor.h crypt.h
  64.     $(CC) -c $(CFLAGS) $*.c
  65.  
  66. unzip.obj: unzip.c gzip.h tailor.h crypt.h
  67.     $(CC) -c $(CFLAGS) $*.c
  68.  
  69. inflate.obj: inflate.c gzip.h tailor.h
  70.     $(CC) -c $(CFLAGS) $*.c
  71.  
  72. util.obj: util.c gzip.h tailor.h crypt.h
  73.     $(CC) -c $(CFLAGS) $*.c
  74.  
  75. crypt.obj: crypt.c gzip.h tailor.h crypt.h
  76.     $(CC) -c $(CFLAGS) $*.c
  77.  
  78. lzw.obj: lzw.c gzip.h tailor.h
  79.     $(CC) -c $(CFLAGS) $*.c
  80.  
  81. unlzw.obj: unlzw.c gzip.h tailor.h lzw.h
  82.     $(CC) -c $(CFLAGS) $*.c
  83.  
  84. unpack.obj: unpack.c gzip.h tailor.h
  85.     $(CC) -c $(CFLAGS) $*.c
  86.  
  87. unlzh.obj: unlzh.c gzip.h tailor.h
  88.     $(CC) -c $(CFLAGS) $*.c
  89.  
  90. tailor.obj: tailor.c gzip.h tailor.h
  91.     $(CC) -c $(CFLAGS) $*.c
  92.  
  93. getopt.obj: getopt.c getopt.h
  94.     $(CC) -c $(CFLAGS) $*.c
  95.  
  96. alloca.obj: alloca.c
  97.      $(CC) -c $(CFLAGS) $*.c
  98.  
  99. match.obj:    match.asm
  100.     $(AS) $(ASFLAGS) match;
  101.  
  102. # we must cut the command line to fit in the MS/DOS 128 byte limit:
  103. gzip.exe: $(OBJ1) $(OBJ2)
  104.     echo $(OBJ1) > gzip.rsp
  105.     echo $(OBJ2) >> gzip.rsp
  106.     $(LD) $(LDFLAGS) @gzip.rsp
  107.     del gzip.rsp
  108.     $(STRIP) gzip.exe
  109.  
  110. install: gzip.exe
  111.     copy /b gzip.exe $(BIN)
  112.     copy /b gzip.exe $(BIN)\gunzip.exe
  113.  
  114. clean:
  115.     del *.obj
  116.     del *.exe
  117.